﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tin
{
    class TEdge
    {
        public TPoint PStart { set; get; }
        public TPoint PEnd { set; get; }

        public TEdge(TPoint point1, TPoint point2)
        {
            PStart = point1;
            PEnd = point2;
        }

        public static bool operator ==(TEdge A, TEdge B)
        {
            if ((A.PStart == B.PStart && A.PEnd == B.PEnd) || (A.PStart == B.PEnd && A.PEnd == B.PStart))
                return true;
            else
                return false;
        }
        public static bool operator !=(TEdge A, TEdge B)
        {
            if ((A.PStart == B.PStart && A.PEnd == B.PEnd) || (A.PStart == B.PEnd && A.PEnd == B.PStart))
                return false;
            else
                return true;
        }

        public override bool Equals(object obj)
        {
            return base.Equals(obj);
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
    }
}
